//
//  UIColor-extension.swift
//  SinaWB
//
//  Created by 财神软件 on 17/2/8.
//  Copyright © 2017年 财神软件. All rights reserved.
//

import Foundation

extension UIColor{
    var randomColor :UIColor{
        return UIColor.init(red: CGFloat(arc4random_uniform(255))/255.0, green: CGFloat(arc4random_uniform(255))/255.0, blue: CGFloat(arc4random_uniform(255))/255.0, alpha: 1.0)
    }
    class func random()->UIColor{
        return UIColor.init(red: CGFloat(arc4random_uniform(255))/255.0, green: CGFloat(arc4random_uniform(255))/255.0, blue: CGFloat(arc4random_uniform(255))/255.0, alpha: 1.0)
    }
}
